package com.zxy.ziems.server.energy.service;

import com.zxy.ziems.server.energy.pojo.dto.EnergyPriceTagDTO;
import com.zxy.ziems.server.energy.pojo.vo.EnergyPriceTagVO;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public interface EnergyPriceTimeService {

    List<EnergyPriceTagVO> getEnergyPriceTime(String energyPriceId);

    void removeByEnergyPriceId(String energyPriceId);

    void addOrModifyTime(List<EnergyPriceTagDTO> energyPriceTimeDTO);

    /**
     * 获取时间段内价格
     * @param energyPriceId
     * @param localDateTime
     * @return
     */
    BigDecimal getEnergyPrice(String energyPriceId, LocalDateTime localDateTime);
}
